/**
 *
 */
package jp.seraph.cui;

/**
 *
 *
 */
public class DefaultData extends AbstractData implements Data {
    public DefaultData(String aName, String aData, Mode aParent, InternalConsole aConsole){
        super(aParent, aConsole);

        mName = aName;
        mData = aData;
    }

    private String mName;
    private String mData;

    /**
     *
     * @see jp.seraph.cui.Data#getData()
     */
    public String getData() {
        return mData;
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getName()
     */
    public String getName() {
        return mName;
    }

    /**
     *
     * @see jp.seraph.cui.AbstractNode#setName(java.lang.String)
     */
    public void setName(String aName) {
        mName = aName;
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getType()
     */
    public SystemNodeType getType() {
        return DataType.getInstance();
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#isRoot()
     */
    public boolean isRoot() {
        return false;
    }

}
